package com.wy.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 宠物药物明细表
 * </p>
 *
 * @author 王昭贵
 * @since 2023-04-27
 */
@Data
@TableName("pet_drug")
@ApiModel(value = "PetDrug对象", description = "宠物药物明细表")
public class PetDrug implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键id")
      @TableId(value = "id", type = IdType.AUTO)
        private Integer id;

      @ApiModelProperty("客户id")
      private Integer customerId;

      @ApiModelProperty("订单id")
      private Integer orderId;

      @ApiModelProperty("药品id")
      private Integer drugId;

    @ApiModelProperty("宠物id")
    private Integer petId;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

      @ApiModelProperty("0表示未支付 1表示待检查 2已检查待发布结果 3表示已发布结果")
      private int status;

      @ApiModelProperty("问诊记录id")
      private Integer diagnosisId;

    

}
